import request from '@/utils/request'


export function listPhoto() {
  return request({
    url: '/foundation/photo/list',
    method: 'get',
  })
}

// 查询参数列表
export function listTool(query) {
  return request({
    url: '/ftwol/tool/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getTool(configId) {
  return request({
    url: '/ftwol/tool/' + configId,
    method: 'get'
  })
}

// 根据参数键名查询参数值
export function getToolKey(configKey) {
  return request({
    url: '/foundaftwoltion/tool/configKey/' + configKey,
    method: 'get'
  })
}

// 新增参数配置
export function addTool(data) {
  return request({
    url: '/ftwol/tool',
    method: 'post',
    data: data
  })
}

export function dataBatch(data,ids) {
  return request({
    url: '/ftwol/tool/editBatch/'+ids,
    method: 'post',
    data: data
  })
}


// 修改参数配置
export function updateTool(data) {
  return request({
    url: '/ftwol/tool',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delTool(configId) {
  return request({
    url: '/ftwol/tool/' + configId,
    method: 'delete'
  })
}

// 刷新参数缓存
export function refreshCache() {
  return request({
    url: '/ftwol/tool/refreshCache',
    method: 'delete'
  })
}

// 新增参数配置
export function getdepartment(data) {
  return request({
    url: '/ftwol/tool/getBumen',
    method: 'post'
  })
}
export function dataScope() {
  return request({
    url: '/ftwol/tool/dataScope',
    method: 'post'
  })
}



export function getregion(data) {
  return request({
    url: '/ftwol/tool/getQuyu',
    method: 'post'
  })
}
export function getstyle(data) {
  return request({
    url: '/ftwol/tool/getStyle',
    method: 'post'
  })
}
export function gettype(data) {
  return request({
    url: '/ftwol/tool/getType',
    method: 'post'
  })
}